package com.wenjiang.exception;

import com.wenjiang.enums.LanTuPayErrorEnum;

/**
 * <p>
 * 蓝兔sdk异常
 * </p>
 *
 * @author lwj
 * @since 2024/11/29.
 */


public class LanTuPayException extends  RuntimeException{

    /**
     * 错误码
     */
    public  String code;


    /**
     * 错误信息
     */
    public String message;


    public LanTuPayException(String message) {
        super(message);
        this.code  = LanTuPayErrorEnum.SERVER_ERROR.getCode();
        this.message = message;
    }

    public LanTuPayException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }
}
